#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main11() {
	srand((size_t)time(NULL));
	int arr[6] = {0},j=0,flag=0;
	for (int i = 0; i < 6; i++)
	{
		int num = rand() % 32 + 1;
		for (j = 0; j < flag; j++)
		{
			if (num == arr[j]) {
				i--;
				break;
			}
		}
		if (flag == j) {
		    arr[flag] = num;
			flag++;
		}
	}
	int max = 0;
	for (int i = 0; i < 6-1; i++)
	{
		for (int j = 0; j < 6-1-i; j++)
		{
			if (arr[j] > arr[j + 1]) {
				max = arr[j];
				arr[j] = arr[j + 1];
				arr[j + 1] = max;
			}
		}
	}
	for (int k = 0; k < 6; k++)
	{
		printf("%d ", arr[k]);
	}
	printf("+ %d", rand() % 16 + 1);
	return 0;
}